/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
$metrics-preferred-gap: 16px;

// TODO(psybuzz): This is likely not metrics-specific. Consider moving to OSS in
// webapp/theme/_tb_theme.template.scss
$metrics-button-background-color-on-gray: #fff;

$metrics-min-card-width: 335px;
$metrics-min-card-height: 320px;

@mixin metrics-sub-view {
  .group-toolbar {
    @include tb-theme-background-prop(background-color, background);
    @include tb-theme-foreground-prop(border-bottom, border, 1px solid);

    align-items: center;
    background-color: #fff;
    display: flex;
    flex: none;
    height: 42px;
    // toolbar has bottom border and it should not be accounted for when
    // positioning sticky headers. Without this, you will see two borders when
    // a toolbar is put against another toolbar.
    margin-bottom: -1px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1;

    box-shadow: 0px 2px 4px 0px rgba(#000, 15%);
    @include tb-dark-theme {
      box-shadow: 0px 2px 4px 0px rgba(#fff, 15%);
    }
  }
}

@mixin metrics-card-group-title {
  font-size: 14px;
  font-weight: 500;
}

@mixin metrics-card-group-count-text {
  font-size: 12px;
  font-weight: 400;
  @include tb-theme-foreground-prop(color, secondary-text);
}

@mixin metrics-card-controls {
  @include tb-theme-foreground-prop(color, secondary-text);
  white-space: nowrap;
}

@mixin metrics-empty-message {
  @include tb-theme-foreground-prop(color, secondary-text);
  font-size: 13px;
  font-style: italic;
  padding: 16px;
  text-align: center;
}
